﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

namespace NinjaToolbox.SubComponentModule
{
    [TargetModel(typeof(SubComponentModuleExample_Model))]
    public class SubComponentModuleExample_ModelEditor : SubComponentModelEditorBase
    {
        protected override float GetInspectorGUIHeight()
        {
            return 25;
        }

        protected override void OnInspectorGUI(Rect rect)
        {
            var model = mTarget as SubComponentModuleExample_Model;

            model.foo = EditorGUI.IntField(rect, "foo", model.foo);
        }
    }
}
